/*
 * IndividualsGetterVisitor.cpp
 *
 *  Created on: 08-01-2011
 *      Author: Przemek
 */

#include "world/visitors/IndividualsGetterVisitor.hpp"
using std::vector;

void IndividualsGetterVisitor::visit(Individual& individual)
{
	individuals.push_back(&individual);
}

void IndividualsGetterVisitor::visit(Barrier&)
{

}

void IndividualsGetterVisitor::visit(MeatSupply&)
{

}

void IndividualsGetterVisitor::visit(VegetableSupply&)
{

}

const vector<Individual*> IndividualsGetterVisitor::getVector()
{
	return individuals;
}
